import time
from django.core.mail import send_mail
from celery_tasks.main import app


@app.task(bind=True,name="send_email")
def send_email(self,verify_url,email):
    # 发送短信
    send_mail(subject="认证邮箱", message=verify_url, from_email="L1353022627@163.com",
              recipient_list=[email])
    time.sleep(10)